package exception_;

/**
 * @Author 小闽
 * @Date 2024/9/22 20:35
 * @PackageName: exception_
 * @ClassName: ArithmeticException_
 * @Description: 算数运算异常
 * @Version 1.0
 */
public class ArithmeticException_ {
    public static void main(String[] args) {
        int num1 = 10;
        int num2 = 0;
        try {
            int res = num1 / num2; // 发生算数运算异常
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
